package Test;

import java.util.ArrayList;

import org.junit.Test;

import DBLayer.DBResponseList;
import ModelLayer.ResponseList;

public class TestDBResponseList
{
	DBResponseList dbrl = new DBResponseList();
	ArrayList<ResponseList> rllist = dbrl.getAllResponseList(false);

	@Test
	public void testGetAllResponseList() {
	    System.out.println("\nResponseList size : " + rllist.size() + "\n");
	}

	@Test
	public void testSearchResponseListID() {
		int id = 1;
		ResponseList rl = dbrl.searchResponseListID(id, false);
		System.out.println("ResponseListID    : " + rl.getResponseListID());
		System.out.println("Response          : " + rl.getResponse());
		System.out.println("MasterCriterias   : " + rl.getMasterCriterias());
		System.out.println("Number            : " + rl.getNumber());
		System.out.println("Assignment        : " + rl.getAssignment());
		System.out.println("Introduced        : " + rl.getIntroduced());
		System.out.println("Mastered          : " + rl.getMastered());
		System.out.println("IntroSignature    : " + rl.getIntroSignature());
		System.out.println("MastSignature     : " + rl.getMastSignature());
		System.out.println("TrainedID         : " + rl.getTrained().getTrainedID());
		System.out.println("-------------------------------------------");
	}
}
